<#include "/common/header.html" />

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInUp">
        <div class="row">
            <div class="col-sm-12">
            	 <div class="ibox-title">
                     <h5>添加用户</h5>
                 </div>
                 <div class="ibox-content">
                 		<form method="post" action="add" 
                 		class="form-horizontal">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">角色编码</label>
                                <div class="col-sm-10">
                                    <input name="roleCode" type="text" class="form-control">
                                    <span class="help-block m-b-none">角色编码唯一</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">角色名称</label>
                                <div class="col-sm-10">
                                    <input type="text" name="roleName" class="form-control"> 
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">权限</label>
                                <div class="col-sm-10">
                                	<#list permList as perm>
                                        <label><input type="checkbox" class="checkbox i-checks" value="${perm.id}" name="permId"> <i></i>${perm.name}</label>
                                	</#list>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                    <button class="btn btn-danger" type="button" onclick="history.back()">返回</button>
                                </div>
                            </div>
                        </form>
                 </div>
            </div>
        </div>
    </div>
<#include "/common/footer.html" />  
</body>
</html>